class Address_insert{
    addressAdd(addressId,name,phone,address,fullAddress,label,informationId,lng,lat){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/address",
                data:{
                    addressId:addressId,
                    name:name,
                    phone:phone,
                    address:address,
                    fullAddress:fullAddress,
                    label:label,
                    informationId:informationId,
                    lng:lng,
                    lat:lat
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
    addressDelete(addressId){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/address",
                method:"post",
                data:{
                    addressId:addressId
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
}